package usualclass;

import java.util.HashMap;

public class StringBuilderDome {
    public static void main(String[] args) {
//        StringBuilder sb = new StringBuilder();
//        System.out.println(sb);
//        sb.insert(0, new char[]{'a', 'b', 'c', 'd', 'e'},0,3);
//        System.out.println(sb);

        /*HashMap map = new HashMap();
        map.put("1", "one");
        map.put("2", "two");
        map.put("3", "three");
        System.out.println(map.get("1"));
        sb.insert(0,map);
        System.out.println(sb);*/
      /*  StringBuilder sbuilder = new StringBuilder("0123456789");
        System.out.println(sbuilder);
        sbuilder.replace(0, 3, "ABCDE");
        System.out.println(sbuilder);
        sbuilder.setCharAt(0, 'M');
        System.out.println(sbuilder);
        sbuilder.reverse();
        System.out.println(sbuilder);*/
        StringBuilder sbuilder = new StringBuilder("abcAbcABCabCaBcAbCaBCabc");
        System.out.println(sbuilder.lastIndexOf("bc"));
        System.out.println(sbuilder.lastIndexOf("bc", 3));
        System.out.println(sbuilder.indexOf("bc", 4));
    }
}
